<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumSaleTimeEnableToPolicy extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('policy', function (Blueprint $table) {
            $table->string('sale_time_enable',255)->nullable()->comment('销售时间限制')->after('last_sale_minute');
            $table->integer('update_type')->default(1)->comment('政策更新方式')->after('apply_child');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
